package com.itany.corejava.day16;

public class TestThreadA {

    public static void main(String[] args) {
        MyThread t1=new MyThread();

        // t1.run();
        t1.start();

        MyThread t2=new MyThread();
        t2.start();


        for (int i = 0; i < 100; i++) {
            System.out.println("main"+i);
        }
    }


}

class MyThread extends Thread{

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("run"+i);
        }
    }
}
